
	    function addyinghangka(){
        var userNames=$("#userName").val();
        var bankNumbers=$("#bankNumber").val();
        var phones=$("#phone").val();
        var addresss=$("#address").val();
          var bank_name='';
     if(!(/^1(3|4|5|7|8)\d{9}$/.test(phones))) {
		alert("手机号码有误");
	 }else if(userNames==""){
        	alert("用户名未填写");
        }else if($(".leixing").html()!="不支持该类型银行卡" && $(".leixing").html()!="自动填充(不支持信用卡)"){
          	var shs=$(".leixing").html().split("-");
               $.each(shs,function(t,m){
               	   if(t==0){
               	   bank_name=m;
               	   if(uuuuid!=""){
               	   	 $.ajax({
		url: urlcore + "/api/userBank/adds",
		type: "post",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify({
			   userId:uuuuid,
			   userName:userNames,
               bankNumber:bankNumbers,
               bankName:bank_name,
               phone:phones,
               address:addresss
		}),
		dataType: "json",
		success: function(data) {
			if(data.success == true) {
				
		      window.location.href = document.referrer;
		     }else{
		     	alert(data.msg);
		     }
		},error: function() {
			alert("error");
		}
	});
               	   }else{
               	   	alert("请重新登录");
               	   	window.location.href="../gotoindex.html";
               	   }
               	   	
               	   }
               });
         }
  }